package cn.stylefeng.guns.modular.yingbao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 建仓订单表
 * </p>
 *
 * @author jj
 * @since 2019-12-18
 */
@TableName("yingbao_sys_building")
public class SysBuilding implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 用户id
     */
    @TableField("userid")
    private Long userid;
    /**
     * 推荐人id
     */
    @TableField("referrer_id")
    private Long referrerId;

    /**
     * 上上级推荐人id
     */
    @TableField("sj_referrer_id")
    private Long sjReferrerId;

    /**
     * 订单号
     */
    @TableField("ordinal")
    private String ordinal;

    /**
     * 价格
     */
    @TableField("price")
    private Long price;

    /**
     * 收益(%)
     */
    @TableField("earnings")
    private Long earnings;
    /**
     * 收益(%)
     */
    @TableField("money")
    private Long money;
    /**
     * 建仓时间
     */
    @TableField("building_time")
    private Date buildingTime;

    /**
     * 天数
     */
    @TableField("fate")
    private Integer fate;

    /**
     * 状态
     */
    @TableField("stuats")
    private String stuats;

    /**
     * 建仓类别
     */
    @TableField("type")
    private int type;

    /**
     * 是否是vip
     */
    @TableField("is_vip")
    private int isVip;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Long getReferrerId() {
        return referrerId;
    }

    public void setReferrerId(Long referrerId) {
        this.referrerId = referrerId;
    }

    public Long getSjReferrerId() {
        return sjReferrerId;
    }

    public void setSjReferrerId(Long sjReferrerId) {
        this.sjReferrerId = sjReferrerId;
    }

    public String getOrdinal() {
        return ordinal;
    }

    public void setOrdinal(String ordinal) {
        this.ordinal = ordinal;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Long getEarnings() {
        return earnings;
    }

    public void setEarnings(Long earnings) {
        this.earnings = earnings;
    }

    public Date getBuildingTime() {
        return buildingTime;
    }

    public void setBuildingTime(Date buildingTime) {
        this.buildingTime = buildingTime;
    }

    public Integer getFate() {
        return fate;
    }

    public void setFate(Integer fate) {
        this.fate = fate;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getStuats() {
        return stuats;
    }

    public void setStuats(String stuats) {
        this.stuats = stuats;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public int getIsVip() {
        return isVip;
    }

    public void setIsVip(int isVip) {
        this.isVip = isVip;
    }

    public Long getMoney() {
        return money;
    }

    public void setMoney(Long money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "SysBuilding{" +
                "id=" + id +
                ", userid=" + userid +
                ", referrerId=" + referrerId +
                ", sjReferrerId=" + sjReferrerId +
                ", ordinal='" + ordinal + '\'' +
                ", price=" + price +
                ", earnings=" + earnings +
                ", money=" + money +
                ", buildingTime=" + buildingTime +
                ", fate=" + fate +
                ", stuats='" + stuats + '\'' +
                ", type=" + type +
                ", isVip=" + isVip +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", version=" + version +
                '}';
    }
}
